package com.ruoyi.share.mapper;

import java.util.List;

import com.ruoyi.share.domain.ShareOrderForm;

/**
 * 订单Mapper接口
 *
 * @author ruoyi
 * @date 2021-11-16
 */
public interface ShareOrderFormMapper
{
    /**
     * 查询订单
     *
     * @param id 订单主键
     * @return 订单
     */
    public ShareOrderForm selectShareOrderFormById(Long id);
    /**
     * 根据订单编号查询订单
     *
     * @param orderCode 订单编号
     * @return 订单
     */
    public ShareOrderForm selectShareOrderFormByOrderCode(String orderCode);

    /**
     * 查询订单列表
     *
     * @param shareOrderForm 订单
     * @return 订单集合
     */
    public List<ShareOrderForm> selectShareOrderFormList(ShareOrderForm shareOrderForm);

    /**
     * 新增订单
     *
     * @param shareOrderForm 订单
     * @return 结果
     */
    public int insertShareOrderForm(ShareOrderForm shareOrderForm);

    /**
     * 修改订单
     *
     * @param shareOrderForm 订单
     * @return 结果
     */
    public int updateShareOrderForm(ShareOrderForm shareOrderForm);

    /**
     * 删除订单
     *
     * @param id 订单主键
     * @return 结果
     */
    public int deleteShareOrderFormById(Long id);

    /**
     * 批量删除订单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteShareOrderFormByIds(Long[] ids);
}
